package com.example.demo.event;

import com.example.demo.model.User;
import org.springframework.context.ApplicationEvent;

/**
 * @author LIN
 * @date 2022-03-15
 */
public class UserRegisterEvent extends ApplicationEvent {

    private User user;

    public UserRegisterEvent(Object source, User user) {
        super(source);
        this.user = user;
    }

    public User getUser() {
        return user;
    }


}
